import PySimpleGUI as sg
# * Arial * Courier * Comic，* Fixedsys * Times * Verdana * Helvetica
def main():
    sg.set_options(suppress_raise_key_errors=False, suppress_error_popups=False, suppress_key_guessing=False)
    sg.TOOLTIP_BACKGROUND_COLOR
    layout = [  [sg.Text('My Window',size=(20,20),font="Verdana")],
                [sg.Input(k='-IN-',tooltip="输入"), sg.Text(size=(12,1), key='-OUT-')],
                [sg.Button('Go'), sg.Button('Exit')]  ]

    window = sg.Window('Window Title', layout, finalize=True)

    while True:             # Event Loop
        event, values = window.read()
        print(event, values)
        if event == sg.WIN_CLOSED or event == 'Exit':
            break
        window['-OUT-'].update(values['-IN-'])
    window.close()

def func():

    main()

func()